﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
using RemoterCheckService;

namespace RemoterCheckService
{
    public partial class RemoterCheckService : ServiceBase
    {
        HttpServer httpServer = new HttpServer();

        public RemoterCheckService()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            httpServer.Setup();
        }

        protected override void OnStop()
        {
            httpServer.Dispose();
        }
    }
}
